import React, { useEffect, useState } from 'react'
import store from './redux/store'

export default function Count() {
  return (
    <div>
      <p>{store.getState().count}</p>
      <button
        onClick={() => {
          store.dispatch({ type: 'add', payload: 3 })
        }}
      >
        +n
      </button>
    </div>
  )
}
